package com.situ.spring.service.impl;

import com.situ.spring.dao.IStudentDao;
import com.situ.spring.service.IStudentService;

public class StudentServiceImpl implements IStudentService {
    //private IStudentDao studentDao = new StudentDaoImpl();
    private IStudentDao studentDao;

    @Override
    public void selectAll() {
        //System.out.println("开启事务");
        System.out.println("StudentServiceImpl.selectAll");
        //studentDao.selectAll();
        //System.out.println("关闭事务");
    }

    @Override
    public void selectById() {
        //System.out.println("开启事务");
        System.out.println("StudentServiceImpl.selectById");
        //System.out.println("关闭事务");
    }

    public void setStudentDao(IStudentDao studentDao) {
        this.studentDao = studentDao;
    }
}
